IntervalHistogram.[dispose] method | Node.js perf_hooks module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:perf_hooks/
IntervalHistogram/
[dispose]M[Symbol.dispose]
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:perf_hooks/
IntervalHistogram/
[dispose]M[Symbol.dispose]
method
perf_hooks.IntervalHistogram.[Symbol.dispose][Symbol.dispose](): void;
Disables the update interval timer when the histogram is disposed.
const { monitorEventLoopDelay } = require('node:perf_hooks');
{
using hist = monitorEventLoopDelay({ resolution: 20 });
hist.enable();
// The histogram will be disabled when the block is exited.
}
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →